// @ts-ignore
/* eslint-disable */
import request from '@/request'


/** 删除用户（仅管理员）接口 POST /api/user/delete */
export async function deleteUserUsingPost(
  body: API.DeleteRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/user/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 获取当前登录用户信息接口 GET /api/user/get/loginUser */
export async function getLoginUserUsingGet(options?: { [key: string]: any }) {
  return request<API.BaseResponseUserLoginVO_>('/api/user/get/loginUser', {
    method: 'GET',
    ...(options || {}),
  })
}

/** 获取用户信息 GET /api/user/get/userInfo */
export async function getUserInfoVoUsingGet(options?: { [key: string]: any }) {
  return request<API.BaseResponseUserInfoVO_>('/api/user/get/userInfo', {
    method: 'GET',
    ...(options || {}),
  })
}

/** 获取所有用户信息 GET /api/user/getAllUserVOInfo */
export async function getAllUserVoInfoUsingGet(options?: { [key: string]: any }) {
  return request<API.BaseResponseListUserVO_>('/api/user/getAllUserVOInfo', {
    method: 'GET',
    ...(options || {}),
  })
}

/** 分页获取用户封装列表（仅管理员）接口 POST /api/user/list/page/vo */
export async function listUserVoByPageUsingPost(
  body: API.UserQueryRequestDTO,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageUserVO_>('/api/user/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 用户登录接口 POST /api/user/login */
export async function userLoginUsingPost(
  body: API.UserLoginRequestDTO,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseUserLoginVO_>('/api/user/login', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 用户登出接口 POST /api/user/logout */
export async function userLogoutUsingPost(options?: { [key: string]: any }) {
  return request<API.BaseResponseBoolean_>('/api/user/logout', {
    method: 'POST',
    ...(options || {}),
  })
}

/** 用户注册接口 POST /api/user/register */
export async function userRegisterUsingPost(
  body: API.UserRegisterRequestDTO,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseLong_>('/api/user/register', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 更新用户信息 POST /api/user/updateUserInfo */
export async function updateUserInfoUsingPost(
  body: API.UserInfoUpdateRequestDTO,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/user/updateUserInfo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}
